<li>
  <%= websitesinf.name1 %>
  [<% if @article.has_websitesinf?(websitesinf.name1) %>
    <%= link_to 'remove website', 
                websitesinf_url(:id => websitesinf.id, :article_id => @article.id), 
                :method => :delete %>
  <% else %>
    <%= link_to 'assign website', 
                websitesinf_url(:id => websitesinf.id, :article_id => @article.id), 
                :method => :put %>
  <% end %>]
</li>
